import request from '@/utils/request'

// 查询配件库开票明细列表
export function listPartsWarehouse(query) {
  return request({
    url: 'system/provideRecords/list',
    method: 'get',
    params: query
  })
}

// 查询配件库开票明细详细
export function getPartsWarehouse(id) {
  return request({
    url: '/system/provideRecords/' + id,
    method: 'get'
  })
}

// 新增配件库开票明细
export function addPartsWarehouse(data) {
  return request({
    url: '/system/provideRecords',
    method: 'post',
    data: data
  })
}

// 修改配件库开票明细
export function updatePartsWarehouse(data) {
  return request({
    url: '/system/provideRecords',
    method: 'put',
    data: data
  })
}

// 删除配件库开票明细
export function delPartsWarehouse(id) {
  return request({
    url: '/system/provideRecords/' + id,
    method: 'delete'
  })
}
// 仓库下拉参数

export function wareList(query) {
  return request({
    url: '/system/ware/list',
    method: 'get',
    params: query
  })
}
